import Layout from "@/layout/Layout.vue"
import pageview from "@/layout/pageview.vue"
const routerConfig = [
    {
        path: '',
        component: Layout,
        redirect: 'dashboard',
        children: [{
            path: '/dashboard',
            component: () => import('@/views/dashboard/index.vue'),
            name: 'dashboard',
            meta: {
                closable: false,
                title: '首页',
            }
        },
        {
            path: 'manage',
            name: 'manage',
            component: pageview,
            children: [{
                path: 'data_add',
                name: 'DataAdd',
                component: () => import('@/views/data-add/index.vue'),
                meta: {
                    closable: true,
                    title: '添加数据源',
                }
            }, {
                path: 'data_manage',
                name: 'DataManage',
                component: () => import('@/views/data-manage/index.vue'),
                meta: {
                    closable: true,
                    title: '数据源管理',
                }
            }, {
                path: 'data_object',
                name: 'DataObject',
                component: () => import('@/views/data-object-manage/index.vue'),
                meta: {
                    closable: true,
                    title: '数据对象管理',
                }
            }, {
                path: 'data_term',
                name: 'DataTerm',
                component: () => import('@/views/data-term-manage/index.vue'),
                meta: {
                    closable: true,
                    title: '数据项管理',
                }
            }]
        },
        {
            path: 'handle',
            name: 'handle',
            component: pageview,
            children: [{
                path: 'address_match',
                name: 'AddressMatch',
                component: () => import('@/views/address-match/index.vue'),
                meta: {
                    closable: true,
                    title: '地址匹配',
                }
            }, {
                path: 'coordinate_convert',
                name: 'coordinate',
                component: () => import('@/views/coordinate-convert/index.vue'),
                meta: {
                    closable: true,
                    title: '坐标转换',
                }
            }, {
                path: 'data_quality',
                name: 'data_quality',
                component: () => import('@/views/data-quality/index.vue'),
                meta: {
                    closable: true,
                    title: '数据质量监控',
                }
            }, {
                path: 'field_config',
                name: 'field_config',
                component: () => import('@/views/field-config/index.vue'),
                meta: {
                    closable: true,
                    title: '时空字段配置',
                }
            }]
        },
        //    资源目录
        {
            path: 'catalog',
            name: 'catalog',
            component: pageview,
            children: [{
                path: 'data_retrieve',
                name: 'data_retrieve',
                component: () => import('@/views/resource-catalog/page/catalog-retrieve/index.vue'),
                meta: {
                    closable: true,
                    title: '资源目录检索',
                }
            }, {
                path: 'data_manage',
                name: 'data_manage',
                component: () => import('@/views/resource-catalog/page/catalog-manage/index.vue'),
                meta: {
                    closable: true,
                    title: '资源目录管理',
                }
            }, {
                path: 'data_staffing',
                name: 'data_staffing',
                component: () => import('@/views/resource-catalog/page/catalog-staffing/index.vue'),
                meta: {
                    closable: true,
                    title: '资源目录编制',
                }
            }, {
                path: 'data_details',
                name: 'data_details',
                component: () => import('@/views/resource-catalog/page/catalog-details/index.vue'),
                meta: {
                    closable: true,
                    title: '资源目录编制',
                }
            }]
        }, {
            path: 'insert',
            name: 'insert',
            component: pageview,
            children: [{
                path: 'data_extract',
                name: 'data_extract',
                component: () => import('@/views/data-extract/index.vue'),
                meta: {
                    closable: true,
                    title: '数据库数据提取',
                }
            }, {
                path: 'data_file_insert',
                name: 'data_file_insert',
                component: () => import('@/views/data-file-insert/index.vue'),
                meta: {
                    closable: true,
                    title: '文件数据接入',
                }
            }, {
                path: 'web_service_insert',
                name: 'web_service_insert',
                component: () => import('@/views/web-service-insert/index.vue'),
                meta: {
                    closable: true,
                    title: 'web service接入',
                }
            }],
        }]
    },
]

export default routerConfig

